// 引入VueRouter插件
import VueRouter from "vue-router";
// 引入组件
import About from '../components/About'
import Home from '../components/Home'

export default new VueRouter({
    routes: [
        {
            path: '/about',
            component: About
        },
        {
            path: '/home',
            component: Home
        }
    ]
})

/* // 创建一个路由器
const router = new VueRouter({
    routers: [
        {
            path: '/about',
            component: About
        },
        {
            path: 'home',
            component: Home
        }
    ]
})
//暴露给外界使用
export default router */
